<%@ include file="/WEB-INF/templates/includes/taglibs.jsp"%>
<div class="experience-container span7">
<h4 class="alert alert-info">Working Experience</h4>
<c:choose>
    <c:when test="${empty cv.experiences}">
        <div class="property-display-holder">
            <div class="property-name">
            </div>
            <div class="property-value">
                -
            </div>
            <div class="cleaner"></div>
        </div>
    </c:when>
    <c:otherwise>
        <c:forEach items="${cv.experiences}" var="experience">
            <div class="experience-holder">
                <h5 class="well well-small">${experience.employer} (<fmt:formatDate value="${experience.fromDate}" pattern="MMMM yyyy"/> - <c:choose><c:when test="${empty experience.toDate}">present</c:when><c:otherwise><fmt:formatDate value="${experience.toDate}" pattern="MMMM yyyy"/></c:otherwise></c:choose>)</h5>
                <div class="property-display-holder">
                    <div class="property-name">
                        Position
                    </div>
                    <div class="property-value">
                        ${experience.position}
                    </div>
                    <div class="cleaner"></div>
                </div>
                <div class="property-display-holder">
                    <div class="property-name">
                        Time spent
                    </div>
                    <div class="property-value">
                        ${experience.numberOfMonths}
                    </div>
                    <div class="cleaner"></div>
                </div>
                <div class="property-display-holder">
                    <div class="property-name">
                        Description of the responsibilities
                    </div>
                    <div class="property-value">
                        ${experience.description}
                    </div>
                    <div class="cleaner"></div>
                </div>
            </div>
        </c:forEach>
    </c:otherwise>
</c:choose>
</div>